package com.wlcj.www.enumtype;

public enum IndustryBaoBiaoEnum {

	PAOLU(0,"成交量","volume","亿元","volume_month_growth"),
	TIXIAN(1,"贷款余量","loan_balance","亿元",""),
	TING(2,"综合利率","compound_interest","%",""),
	BUMING(3,"平均借款期限","average_loan_time","月",""),
	BUMING1(4,"当月投资人数","month_investment_num","万人",""),
	BUMING2(5,"当月借款人数","month_borrow_num","万人",""),
	BUMING3(6,"运营平台数量","operating_platform_num","家","platform_month_growth2");
	private int id;
	private String desc;
	private String code;
	private String danwei;
	private String codeTwo;
	
	private IndustryBaoBiaoEnum(int id, String desc,String code,String danwei,String codeTwo) {
		this.id = id;
		this.desc = desc;
		this.code=code;
		this.danwei = danwei;
		this.codeTwo=codeTwo;
	}
	
	
	public int getId() {
		return id;
	}


	public void setId(int id) {
		this.id = id;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}
	

	public String getCode() {
		return code;
	}


	public void setCode(String code) {
		this.code = code;
	}


	public String getDanwei() {
		return danwei;
	}


	public void setDanwei(String danwei) {
		this.danwei = danwei;
	}


	public String getCodeTwo() {
		return codeTwo;
	}


	public void setCodeTwo(String codeTwo) {
		this.codeTwo = codeTwo;
	}


	public static IndustryBaoBiaoEnum getEnumByName(String desc) {
		IndustryBaoBiaoEnum[] enums = IndustryBaoBiaoEnum.values();
		for(IndustryBaoBiaoEnum enumtype:enums) {
			if(enumtype.getDesc().contains(desc)) {
				return enumtype;
			}
		}
		return PAOLU;
	}
}
